package library.model;

import com.gooddies.reflection.fieldprocessing.fieldextractors.jdbcExctractor.JdbcField;
import library.database.Data;

/**
 * @author Dmitry
 */
public class Book {
    @JdbcField(field = "id")
    private int id;
    @JdbcField(field = "id_author")
    private int id_author;
    @JdbcField(field = "title")
    private String title;
    @JdbcField(field = "genres")
    private String genre_id;
    @JdbcField(field = "file_name")
    private String fileName;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getId_author() {
        return id_author;
    }

    public void setId_author(int id_author) {
        this.id_author = id_author;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getGenre_id() {
        return genre_id;
    }

    public void setGenre_id(String genre_id) {
        this.genre_id = genre_id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return "Book: "+getTitle();
    }
}
